export class AGCFunctionErrorCode {
  //错误码返回11000-12000
  /**
   * 获取clienttoken失败
   */
  static readonly FAIL_TO_GET_CREDENTIAL_SERVICE: FunctionErrorCode = {
    code: 11000,
    message: 'get agcCredential service failed'
  };
  /**
   * 获取network模块失败
   */
  static readonly FAIL_TO_GET_NETWORK_SERVICE: FunctionErrorCode = {
    code: 11001,
    message: 'get agcNetwork service failed'
  };

  /**
   * 获取network模块失败
   */
  static readonly FAIL_TO_CALL_CLOUD_FUNCTION: FunctionErrorCode = {
    code: 11002,
    message: 'call cloud function failed'
  };

  /**
   * 无法获取用户token
   */
  static readonly FAIL_TO_GET_ACCESS_TOKEN: FunctionErrorCode = {
    code: 11003,
    message: 'no user login'
  };
}

export interface FunctionErrorCode {
  code: number;
  message: string;
}